<span id="${uuid}"></span>

<div data-id="content" class="box_tc_s">
    <form data-id="form-attendance-update-info" method="post"
          action="${pageContext.request.contextPath}/app/api/attendance/endTime">
        <input type="hidden" name="id" value="${attendance.id}">
        <table border="0" cellpadding="0" cellspacing="0" class="hydra-table">
            <tr class="hydra-tr-bg">
                <td class="hydra-left width90">考勤事由：</td>
                <td class="hydra-right">
                    ${attendance.reason.dirValue}
                </td>
            </tr>
            <%--<c:if test="${!empty attendance.projectCode}">--%>
                <%--<tr class="hydra-tr-bg">--%>
                    <%--<td class="hydra-left width90">项目代号：</td>--%>
                    <%--<td class="hydra-right">--%>
                            <%--${attendance.projectCode}--%>
                    <%--</td>--%>
                <%--</tr>--%>
            <%--</c:if>--%>
            <tr>
                <td class="hydra-left width90">备注：</td>
                <td class="hydra-right">
                    ${attendance.remark}
                </td>
            </tr>
            <tr class="hydra-tr-bg">
                <td class="hydra-left width90">人员：</td>
                <td class="hydra-right">
                    ${attendance.applyUser.orgsDescription} - ${attendance.applyUser.userName}
                </td>
            </tr>
            <tr class="hydra-tr-bg">
                <td class="hydra-left width90">填报人：</td>
                <td class="hydra-right">
                    ${attendance.createUser.orgsDescription} - ${attendance.createUser.userName}
                    <c:if test="${attendance.isReplace eq 1}">
                        (代填)
                    </c:if>
                </td>
            </tr>
            <tr class="hydra-tr-bg">
                <td class="hydra-left width90">填报时间：</td>
                <td class="hydra-right">
                    <fmt:formatDate value="${attendance.createTime}" pattern="yyyy-MM-dd HH:mm"/>
                </td>
            </tr>
            <tr class="hydra-tr-bg">
                <td class="hydra-left width90">开始时间：</td>
                <td class="hydra-right">
                    <fmt:formatDate value="${attendance.beginTime}" pattern="yyyy-MM-dd HH:mm"/>
                    <div style="display: none">
                        <input type="text" class="hydra-input-width" data-id="beginTime" value="${attendance.beginTime}"
                               name="beginTime" data-options="required:true,editable:false"/>
                    </div>
                </td>
            </tr>
            <tr class="hydra-tr-bg">
                <c:choose>
                    <c:when test="${empty attendance.apm}">
                        <td class="hydra-left width90">结束时间：</td>
                        <td class="hydra-right">
                            <input type="text" class="hydra-input-width" data-id="endTime"
                                   name="endTime" data-options="editable: false"
                                   validType="compareDate['${uuid}','beginTime']"  invalidMessage="结束时间应大于开始时间"/>
                        </td>
                    </c:when>
                    <c:otherwise>
                        <td class="hydra-left width90">考勤天数：</td>
                        <td class="hydra-right">
                            <input type="text" class="easyui-numberbox easyui-validatebox hydra-input-width" value="0.5"
                                   data-id="days" name="days" data-options="min:0.5,precision:1" />
                        </td>
                    </c:otherwise>
                </c:choose>
            </tr>
        </table>
    </form>
</div>
<script type="text/javascript">
    seajs.use(["apps/attendance/selfList"], function (page) {
        page.update("${pageContext.request.contextPath}", "${uuid}");
    });
</script>